package cn.com.db.dao;

import cn.com.db.model.Deck;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface DeckDao {

    void createDeck(Deck deck);

    Deck getDeckById(String id);

    List<Deck> getDeck(@Param("parent")String parent);

    Integer countDeck(@Param("parent")String parent);

    void update(Deck deck);

}
